#!/bin/bash
for f in $(ls gramatica*.txt); do
    echo "${f}" >> gt-out.txt;
    echo >> gt-out.txt;
    java -jar gt.jar $f "${f}.xml" 2>>gt-out.txt >> gt-out.txt;
    echo >> gt-out.txt;
    echo >> gt-out.txt;
done